﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Classes
{
    class Connection
    {
        IList<Flight> flights;
        City departureCity { get; set; }
        City destinationCity { get; set; }
        int totalTime { get; set; }
        int totalPrice { get; set; }
        int numberOfFlightChange { get; set; }
        int noOfseatsLeft { get; set; }
        int noOfSeatsReservedByCustomer { get; set; }
    public Connection()
    {
        flights = new List<Flight>();
    }
      public void AddFlight(Flight flight)
    {
        flights.Add(flight);
    }
    public IList<Flight> FlightList()
      {
          return flights;
      }
        public void SetFlightList(IList<Flight> value)
    {
        flights = value;
    }
        public void RemoveFlight(Flight flight)
    {
        flights.Remove(flight);
    }
    }
}
